package com.gaocf.designpatterns.behavior.observable;

public class Demo {
    public static void main(String[] args) {
        LogNotify logObservable = new LogNotify();
        logObservable.AddLogType(new FileLog());
        logObservable.AddLogType(new DbLog());

        logObservable.WriteLog("消息");
    }
}
